home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
BBS_HYP_
/
BBS_HYP.C
Wrap
C/C++ Source or Header
|
1992-07-19
|
3KB
|
117 lines
/***
* BBS/HYP.c
*
* I conceived this program on a night when I was feeling particularly
* lazy. This program will open applications for you from the keyboard
* with the touch of a key. It will keep you from having to click
* through massive volumes of folders in order to find the program you
* wish to use.
*
* This is a product of Dreamer's Software...
*
* This program has been run only on a Mac IIci and does not have extensive
* error checking, but if used right I have found it to be a big help.
* I hope you can enjoy it, but if in fact it causes trouble for you I
* take no responsibility.
*
* TO USE: Just input your pathnames and application names as is shown
* in the source code example.
*
* Please enjoy it, and if nothing more it gives you an example of the use
* of a switch statement.
*
* GEnie: J.EDWARDS38
* BBS: GLOBAL VILLAGE BBS (512)-476-0016 9600 DS/HST USR
***/
#include <unix.h>
#include <stdlib.h>
#include <console.h>
#define NDIGITS 80
main()
{
int i;
console_options.title = "\pProgram Chooser 1";
for(i = 0; i < 12; i++) puts(" ");
puts(" Welcome to PROGRAM CHOOSER 1!");
puts(" a product of Dreamer's Software..");
for(i = 0; i < 12; i++) puts(" ");
sleep(2);
choose();
}
choose()
{
char name[NDIGITS];
printf("\t\tGood day! Which would you like?\n\n\n");
printf("\t\t\tWhich would you like to open?\n\n");
printf(" Miscellaneous: Communications:\n");
puts(" ______________ _______________");
printf(" <H>yperCard <Z>term\n");
printf(" <S>econd Sight <W>hite Knight 11.12\n");
printf(" <C> (Think C 5.0)\n");
printf(" <3>D (Swivel 3D Professional)\n");
printf(" <U>tilities (Compaction)\n");
printf("\n\n");
printf(" Money/Word Processing\n");
puts(" _____________________\n");
printf(" <E>xcel\n");
printf(" <M>ore 3.0\n");
puts("\t\t\tChoose 'Q' to exit program!\n");
printf("PROMPT: ");
if(!user_choose())
{
exit(EXIT_SUCCESS);
}
}
user_choose()
{
while(1)
{
switch(getchar())
{
case 'h':
case 'H':
exec("T.W. 105:HyperCard:Hypercard");
case 's':
case 'S':
exec("T.W. 105:BBS:Second Sight");
case 'c':
case 'C':
exec("T.W. 105:Mac. Development:Think C 5.0 Folder:Think C 5.0");
case '3':
exec("T.W. 105:Swivel 3D:Swivel 3D¬ Professional");
case 'z':
case 'Z':
exec("T.W. 105:WK Master:Comm.:ZTerm 0.9");
case 'w':
case 'W':
exec("T.W. 105:WK Master:White Knight 11.12");
case 'e':
case 'E':
exec("T.W. 105:MORE 3.0:Microsoft Excel");
case 'm':
case 'M':
exec("T.W. 105:MORE 3.0:MORE¬ 3.0");
case 'u':
case 'U':
exec("T.W. 105:MORE 3.0:Comp.Util.:Compact Pro:Compact Pro");
case 'q':
case 'Q':
exit(EXIT_SUCCESS);
}
}
}